package registry

type ServiceInfo struct {
	ID       string
	Name     string
	Port     int
	Address  string
	Tags     []string
	Version  string //具体信息在consul中记录在tags中
	Active   bool   //是否有效
	UseCount int64  //客户调用次数
}

/*
type ServiceInfoItem func(*ServiceInfo)

func ServucePort(port int) ServiceInfoItem {
	return func(o *ServiceInfo) {
		o.Port = port
	}
}

func ServuceVersion(version string) ServiceInfoItem {
	return func(o *ServiceInfo) {
		o.Version = version
	}
}
*/
/*

	registration.ID = "serverNode_3zgw"
	registration.Name = "serverNode_324"
	registration.Port = 9521
	registration.Tags = []string{"serverNode", "234242", "43531231", "xxxxxx", "yyyyyy", "zgwww"}
	registration.Address = "127.0.0.1"
*/
